package com.diandian.backend.file.param;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class FIleUrlUploadParam implements Serializable {

    private String url;
    private String fileName;

    public void check(){
        if(this.url == null || "".equals(this.url)){
            throw new DefaultException("参数缺失");
        }
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
}
